<?php
	include_once('clases/Settings.php');
	//require_once(dirname(__FILE__).'/lib/doctrine/Doctrine.php');
	require_once('librerias/doctrine/Doctrine.php');
	$settings = Settings::getInstance('config/configuracion.ini');
	
	spl_autoload_register(array('Doctrine','autoload'));
	$conn=Doctrine_Manager::connection('mysql://'.$settings->BASE_DATOS['db_user'].':'.$settings->BASE_DATOS['db_pass'].'@'.$settings->BASE_DATOS['db_server'].'/'.$settings->BASE_DATOS['db_name'],'doctrine');
	//Doctrine::generateModelsFromDb('../modelos',array('doctrine'),array('generateTableClasses'=>false));

	Doctrine::loadModels('modelos');
?>